package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 微信发货信息上传请求对象
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "WechatShippingRequest对象", description = "微信发货信息上传请求对象")
public class WechatShippingRequest {

    @ApiModelProperty(value = "订单编号", required = true)
    @NotBlank(message = "订单编号不能为空")
    private String orderKey;

    @ApiModelProperty(value = "物流信息类型，1-快递，2-同城配送，3-虚拟商品", required = true, allowableValues = "range[1,2,3]")
    @NotNull(message = "物流信息类型不能为空")
    private Integer logisticsType;

    @ApiModelProperty(value = "微信支付交易单号")
    private String transactionId;

    @ApiModelProperty(value = "物流单号")
    private String trackingNo;

    @ApiModelProperty(value = "物流公司编码")
    private String expressCompany;

    @ApiModelProperty(value = "物流公司名称")
    private String expressName;

    @ApiModelProperty(value = "商家自定义备注")
    private String contact;

    @ApiModelProperty(value = "微信用户openid")
    private String openid;

    @ApiModelProperty(value = "发货时间戳，毫秒")
    private Long shipTime;

    @ApiModelProperty(value = "上传时间戳，毫秒")
    private Long uploadTime;
} 